<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			p{
				width: 100%;
				word-break:normal;
white-space:pre-warp;
word-wrapL:break-word;
			}
		</style>
	</head>
	<body>
		生成一个数组，里面的内容是从零点开始，每五分钟打印一个时间点；
		<h5>
			eg：["00:00","00:05","00:10","00:15",…………]
		</h5>
		<p></p>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		var zero_time = new Date().setHours(0,0,0,0);
		console.log(zero_time);
		var chang_time = "";
		var arr = [];
		for(var i =0;i<(12*24);i++){
			chang_time = zero_time + i*5*60*1000;
			var chang_time_hour = new Date(chang_time).getHours()<10?"0" + new Date(chang_time).getHours():new Date(chang_time).getHours();
			var chang_time_mon = new Date(chang_time).getMinutes()<10?"0" + new Date(chang_time).getMinutes():new Date(chang_time).getMinutes();
			var total = chang_time_hour+":"+chang_time_mon;
			//console.log(total);
			arr.push(total);
		}
		console.log(arr);
		$("p").text("["+arr.toString()+"]");
	</script>
</html>
